﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Input;

namespace Hook
{
    public class MyKeyEventArgs : EventArgs
    {
        public bool IsSysKey { get; set; }
        public bool Handled { get; set; }
        public Key Key { get; set; }

        public MyKeyEventArgs(int KeyCode,bool IsSysKey)
        {
            this.IsSysKey = IsSysKey;
            this.Key = KeyInterop.KeyFromVirtualKey(KeyCode);
        }

        public MyKeyEventArgs(int KeyCode)
            : this(KeyCode, false)
        {
        }
    }
}
